package com.ktjy.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description
 * @Author 李楚鹏
 * @Date 2025/1/3 下午4:16
 **/
@Data
@TableName("user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private int id;
    @TableField("name")
    private String name;
    @TableField("sex")
    private String sex;


    public User( String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
